package cn.lili.controller.feign;

import cn.lili.modules.broadcast.service.StudioService;
import cn.lili.modules.goods.client.StudioClient;
import cn.lili.trigger.message.BroadcastMessage;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author paulG
 * @since 2022/1/17
 **/
@RestController
@RequiredArgsConstructor
public class StudioFeignController implements StudioClient {

    private final StudioService studioService;

    /**
     * 修改直播间状态
     *
     * @param broadcastMessage 直播间消息
     */
    @Override
    public void updateStudioStatus(BroadcastMessage broadcastMessage) {
        studioService.updateStudioStatus(broadcastMessage);
    }
}
